from decimal import *
price = input("请输入苹果的单价")
weight = input("请输入购买重量")
# d_price =Decimal(price)
# d_weight=Decimal(weight)
money = Decimal(price) * Decimal(weight)
print(money)